<form action="" method="post">
<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
    <section>
        <h2><strong style="color:grey;">添加类型</strong></h2>
        <ul class="ulColumn2">
            <li>
                <span class="item_name" style="width:120px;">类型名称：</span>
                <input type="text" class="textbox textbox_295" placeholder="类型名称..." name="type_name"/>
            </li>
            <li>
                <span class="item_name" style="width:120px;"></span>
                <input type="button" class="link_btn" value="提交" />
            </li>
        </ul>
    </section>
</form>
<script type="text/javascript">
    $('.link_btn').click(function () {
        var form = {};
        var serArray = $('form').serializeArray();
        $.each(serArray, function(){
            form[this.name] = this.value;
        });
        $.ajax({
            type: 'post',
            url: "http://www.nbshop.com/admin/goods_type_add",
            data: form,
            dataType: 'json',
            success: function(result){
                alert(result);
                // if(result.code == 0){
                //     return false;
                // }
                // location.href = result.url;
            }
        });
    });
</script>